// mixin里面的参数

// darken() 函数，可以让颜色暗一些

@mixin alert($text-color, $background) {
  color: $text-color;
  background-color: $background;
  a {
    color: darken($color: $background, $amount: 10%);
  }
}

.alert-warning {
  @include alert(#8a6d3b, #fcf8e3);
}

.alert-error {
  @include alert(#8a6d3b, #fcf8e3);
  color: red;
}
